Skip to main content

twelveHourTime

Type

property

Summary

Specifies whether the time function uses a 12-hour clock or a 24-hour clock.

Syntax

set the twelveHourTime to {true | false}

Description

Use the twelveHourTime property to operate with military-style 24-hour time.

The setting of the twelveHourTime property affects the format in which the time property reports a time. It also affects the format of the convert command when a time specifier is used.

If the twelveHourTime is true, the time function returns a value including AM or PM. If the twelveHourTime is false, AM or PM is not included; instead, the hour is not reset to 1 after noon. For example, the time 2:35 PM in 12-hour time is equivalent to 14:35 in 24-hour time.

Examples

set the twelveHourTime to false
set the twelveHourTime to (the hilite of button "12 Hours")

command: convert

control structure: function

function: format, time

glossary: property, return

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?